<template>
  <div class="main-layout">
    <el-container class="layout-container">
      <el-button @click="changeCount">{{ store.state.count }}</el-button>
    </el-container>
  </div>
</template>

<script setup>
import { useStore } from 'vuex';

const store = useStore();

const changeCount = () => {
  store.commit('increment');
};
</script>

<style scoped>
.main-layout {
  min-height: 100vh;
}
.layout-container {
  min-height: 100vh;
}
</style>
